package com.yociyy.admin.model.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 系统-用户和角色关联表
 * 
 * @author Y.yang
 * @date 2019-12-05
 */
@Data
@Accessors(chain = true)
@Table(name = "base_user_role")
public class BaseUserRole implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@Id
	private Long userId;

	/**
	 * 角色ID
	 */
	@Column(name = "role_id")
	private Long roleId;
}
